package tk.sunlatus.project.config;

public enum ConfigerType {

    NoRefresh(0), RefreshOnUsed(1), RefreshByTask(2);

    private int type = 0;

    ConfigerType(int type) {
        this.type = type;
    }

    int getType() {
        return type;
    }

   static ConfigerType getConfigerType(int type) {
        if (type == 0) {
            return NoRefresh;
        }
        if (type == 1) {
            return RefreshOnUsed;
        }
        if (type == 2) {
            return RefreshByTask;
        }
        return null;
    }

    String getTypeStr() {
        return String.valueOf(type);
    }

}
